package com.zyndev.sanchi.controller.setting;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 发件人信息设置
 *
 * @author 张瑀楠 zyndev@gmail.com
 * @version 1.0
 * @since 2017 /12/16 下午3:40
 */
@Controller
@RequestMapping("setting/senderInfo")
public class SenderInfoController {


    /**
     * Index string.
     *
     * @return the string
     */
    @GetMapping("index")
    public String index() {
        return "/senderInfo/index.html";
    }

    /**
     * Modify sender info string.
     *
     * @param name    the name
     * @param phone   the phone
     * @param address the address
     * @return the string
     */
    @ResponseBody
    @PostMapping("modify")
    public String modifySenderInfo(@RequestParam String name, @RequestParam String phone, @RequestParam String address) {
        
        return null;
    }

    /**
     * Save sender info string.
     *
     * @param name    the name
     * @param phone   the phone
     * @param address the address
     * @return the string
     */
    @ResponseBody
    @PostMapping("save")
    public String saveSenderInfo(@RequestParam String name, @RequestParam String phone, @RequestParam String address) {
        return null;
    }

    /**
     * Find sender info string.
     *
     * @return the string
     */
    @ResponseBody
    @GetMapping("find")
    public String findSenderInfo() {

        return null;
    }

}
